﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NTQOnlineExam.Services.Models
{
    public class OrderPaymentDTO
    {
        public Guid OrderId { get; set; }
        public decimal SubTotal { get; set; }
        public decimal PaymentFee { get; set; }
        public decimal TaxTotal { get; set; }
        public string OrderDescription { get; set; }
        public IList<OrderPaymentDetailDTO> Items { get; set; }

        public string Firstname { get; set; }
        public string Lastname { get; set; }
        public string Street { get; set; }
        public string State { get; set; }
        public string ZipCode { get; set; }
        public string City { get; set; }
        public string POBox { get; set; }

        public string Email { get; set; }
        public string Phone { get; set; }

        public string SuccessUrl;
        public string CancelUrl;
        public string CurrencyCode { get; set; }

        public OrderPaymentDTO()
        {
            CurrencyCode = "AUD";
        }

        //public string CreditCardNo { get; set; }
        ///// <summary>
        ///// Format: MMYY
        ///// </summary>
        //public string CardExpDate { get; set; }
        //public string CardCVVC { get; set; }
    }

    public class OrderPaymentDetailDTO
    {
        public Guid ItemId { get; set; }
        public string Name { get; set; }
        public decimal Price { get; set; }
        public int Quantity { get; set; }
    }
}
